cmake_minimum_required(VERSION 3.10)

project(Metronome)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

find_package(SDL2 REQUIRED)

include_directories(${SDL2_INCLUDE_DIRS})
link_directories(${SDL2_LIBRARIES})

add_executable(metronome metronome.c)
target_link_libraries(metronome ${SDL2_LIBRARIES})
target_link_libraries(metronome SDL2_mixer)
